-- GENERATED SPELL FOR [Spirit Talker Snarlfang] --


function spell0_25339(pUnit, Event) --@Ancestral Spirit,n/a--
pUnit:FullCastSpellOnTarget(45608,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25339', 10000, 1)
end

function Sorts_25339(pUnit, Event)
local choix_sorts_25339 = math.random(0, 0)
if choix_sorts_25339 == 0 then
pUnit:RegisterEvent('spell0_25339', 1, 1)
end
end

function mob25339_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25339', math.random(1500, 3000), 1)
end

function mob25339_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25339_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25339_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25339, 1, 'mob25339_Action')
RegisterUnitEvent(25339, 2, 'mob25339_Leave')
RegisterUnitEvent(25339, 3, 'mob25339_Kill')
RegisterUnitEvent(25339, 4, 'mob25339_Die')
